<%@ page contentType="text/html; charset=utf-8" language="java" errorPage="" %>
<%@include file="./include/jspheader.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>行天下机票系统 - 注册</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<SCRIPT type=text/javascript src="js/jquery.min.js"></SCRIPT>
<META name=keywords content="行天下机票系统">
<META name=description content="行天下机票系统">
<LINK rel="shortcut icon" href="/images/favicon.ico">
<LINK rel=stylesheet type=text/css href="css/login.css">
    <script src="/js/jquery-1.4.4.min.js" type="text/javascript"></script>
    <link type="text/css" rel="stylesheet" href="/css/formValidator/validator.css" />
	<script src="/js/formValidator-4.0.1.min.js" type="text/javascript" charset="UTF-8"></script>
	<script src="/js/formValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $.formValidator.initConfig({submitButtonID:"regSubmit",onError:function() {
                        alert("具体错误，请看网页上的提示")
                    }});

            $("#password").formValidator({onShow:"请输入密码",onFocus:"长度8～16位，同时包含数字、字母，可以使用特殊符号，字母区分大小写",onCorrect:"密码合法"}).inputValidator({min:8,max:16,empty:{leftEmpty:false,rightEmpty:false,emptyError:"密码两边不能有空符号"},onError:"密码不能为空,请确认"});
            $("#re_password").formValidator({onShow:"输再次输入密码",onFocus:"长度8～16位，同时包含数字、字母，可以使用特殊符号，字母区分大小写",onCorrect:"密码一致"}).inputValidator({min:1,max:16,empty:{leftEmpty:false,rightEmpty:false,emptyError:"重复密码两边不能有空符号"},onError:"重复密码不能为空,请确认"}).compareValidator({desID:"password",operateor:"=",onError:"2次密码不一致,请确认"});
            $("#email").formValidator({onShow:"请输入邮箱",onFocus:"邮箱6-100个字符,输入正确了才能离开焦点",onCorrect:"邮箱合法",defaultValue:"@"}).inputValidator({min:6,max:100,onError:"你输入的邮箱长度非法,请确认"}).regexValidator({regExp:"^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$",onError:"你输入的邮箱格式不正确"});
            $("#company").formValidator({empty:true,onShow:"请输入你的公司名称",onFocus:"请输入你的公司名称，可以不填",onCorrect:"公司名称合法",onEmpty:"你真的不想填公司名称吗？"}).inputValidator({min:2,max:100,onError:"公司名称必须超过两个字符,请确认"});
            })
    </script>
</HEAD>
<BODY>
<DIV class="topIcon clearfix"></DIV>
<DIV class=logWrap>
  <H1><A title="机票系统" href=""><img src="images/logo.jpg" /></A></H1>
  <div class="logBg">
    <form id="user-form" action="doReg.action" method="post">
      <div class="logBox clearfix">
        <div class="reg1Tit clearfix">
          <h2 class="float_left" title="注册账号">注册账号</h2>
          <p class="float_right"></p>
        </div>
        <ul class="reg1Con">
            <li>
                <label>Email：</label>
                <input maxlength="50" class="logInt" name="user.email" id="email" type="text"/>
                <div id="emailTip"></div>
            </li>
            <li>
                <label>设置密码：</label>
                <input maxlength="32" class="logInt" name="user.password" id="password" type="password"/>
                <div id="passwordTip" style="width:250px;VERTICAL-ALIGN: middle"></div>
            </li>
            <li>
                <label>再次输入密码：</label>
                <input maxlength="32" class="logInt" name="user.password" id="re_password" type="password"/>
                <div id="re_passwordTip" style="width:250px"></div>
            </li>
            <li>
                <label>公司名称：</label>
                <input maxlength="50" class="logInt" name="user.company" id="company" type="text"/>
                <div id="companyTip" style="width:250px"></div>
            </li>
            <li>
                <label>验证码：</label>
                <input maxlength="8" class="logInt" style="width:auto;" name="jCaptchaResponse" id="jCaptchaResponse" type="text"/>
                <img src="xtx_jcaptcha_image.action" align="center" alt="看不清？点击更换" style="cursor:pointer" onclick="this.src=this.src+'?'"/>
            </li>
          </ul>
          <p class="reg1Btn">
              <input type="hidden" value="1329718816" name="time" id="time"/>
              <input class="regNow" id="regSubmit" type="submit" name="yt0" value="立即注册"/>
          </p>
        <p class="reg1Btn">点击"立即注册"，即表示您同意并愿意遵守行天下<a href="#" target="_blank" style="color:#FA7310">用户协议</a>和<a href="#" target="_blank" style="color:#FA7310">隐私政策</a></p>
      </div>
    </form>
  </div>
<s:if test="hasActionErrors() == true">
<div align="center">
<div id="aa" style="background:#CCFFFF;width:350px;">
<s:actionerror theme="simple" />
</div>
</div>
</s:if>
</DIV>
<DIV class=Emailbox>
  <DIV id=Emailbox></DIV>
</DIV>
<!--    <script type="text/javascript">
        $('#userName').focus();
    </script>-->
<DIV class=logFooter>行天下自助旅行网： <A href="http://www.xiaomi.com/" 
target=_blank>同业系统</A> <SPAN>｜</SPAN> <A href="http://bbs.xtx6.com/" 
target=_blank>论坛</A><BR>
  Copyright ©2012 </DIV>
<DIV style="DISPLAY: none"> 
  <SCRIPT type=text/javascript src="/stat.htm"></SCRIPT> 
</DIV>
</BODY>
</HTML>
